﻿// ===============================================================================
// Copyright (c) 2007-2020 西安交通信息投资营运有限公司 版权所有
// 作者:张谦
// ===============================================================================

using System;
using System.ComponentModel.DataAnnotations;
using XCI.Core;

namespace XCI.Sys.Model
{
    /// <summary>
    /// 在线用户
    /// </summary>
    public class SysOnlineUser
    {
        /// <summary>
        /// 用户主键
        /// </summary>
        [Display(Name ="用户主键")]
        [ApiModelProperty(PrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [Display(Name ="姓名")]
        public string Name { get; set; }

        /// <summary>
        /// 登陆账户
        /// </summary>
        [Display(Name ="账号")]
        public string Account { get; set; }

        /// <summary>
        /// 登录时间
        /// </summary>
        [Display(Name ="登录时间")]
        public DateTime LoginTime { get; set; }

        /// <summary>
        /// 激活时间
        /// </summary>
        [Display(Name ="激活时间")]
        public DateTime ActiveTime { get; set; }

        /// <summary>
        /// 机构主键
        /// </summary>
        [Display(Name ="机构主键")]
        public string DeptId { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        [Display(Name ="机构名称")]
        public string DeptName { get; set; }
        
        /// <summary>
        /// 是否超级管理员
        /// </summary>
        [Display(Name ="管理员")]
        public bool IsAdmin { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        [Display(Name = "IP地址")]
        public string Ip { get; set; }

        /// <summary>
        /// IP地点
        /// </summary>
        [Display(Name = "IP地点")]
        public string IpLocation { get; set; }

        /// <summary>
        /// 客户端
        /// </summary>
        [Display(Name = "客户端")]
        public string Browser { get; set; }

        /// <summary>
        /// 操作系统
        /// </summary>
        [Display(Name = "操作系统")]
        public string Os { get; set; }

        /// <summary>
        /// 应用主键
        /// </summary>
        [Display(Name = "应用主键")]
        public string AppId { get; set; }

        /// <summary>
        /// 应用名称
        /// </summary>
        [Display(Name = "应用名称")]
        public string AppName { get; set; }

        /// <summary>
        /// devExpress控件版本
        /// </summary>
        [Display(Name = "devExpress控件版本")]
        public string DevExpressVersion { get; set; }

        /// <summary>
        /// xciCore框架版本
        /// </summary>
        [Display(Name = "xciCore框架版本")]
        public string XciCoreVersion { get; set; }
    }
}
